package com.ftg.learn.service.impl;

import com.ftg.learn.entity.TeacherEntity;
import com.ftg.learn.mapper.TeacherMapper;
import com.ftg.learn.service.TeacherService;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 布衣
 */
@Service
@Primary
public class TeacherServiceImpl implements TeacherService {

    @Resource
    TeacherMapper teacherMapper;

    @Override
    public List<TeacherEntity> list(String name) {
        return teacherMapper.list(name);
    }
}
